package com.twohand.admin.Controller;

import com.tencent.cloud.Response;
import com.twohand.admin.Service.CosService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;

@RestController
@RequestMapping("/cos")
public class CosController {
    @Autowired
    CosService cosService;
    @GetMapping("/credential")
    public Response getCre(String bucketName,String bucketOrigin) throws IOException {
        return cosService.getCre(bucketName,bucketOrigin);
    }
}
